<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="cf">
        <div class="main-title">
            <h2>当日概况</h2>
        </div>
        <div class="cf">
            <div class="fl" style="margin-right: 20px;">
                <div style="width: 200px;height: 120px;border:2px solid green;">
                    <div style="width: 196px;height: 80px;font-size: 34px;font-weight:bold;text-align: center;line-height: 80px;color: red;">{$dailyplancnt}</div>
                    <div style="width: 196px;height: 36px;font-size: 14px;font-weight:bold;text-align: center;line-height: 36px;">今日计划总分拣量</div>
                </div>
            </div>
            <div class="fl" style="margin-right: 20px;">
                <div style="width: 200px;height: 120px;border:2px solid green;">
                    <div style="width: 196px;height: 80px;font-size: 34px;font-weight:bold;text-align: center;line-height: 80px;color: red;">{$dailyrealitycnt}</div>
                    <div style="width: 196px;height: 36px;font-size: 14px;font-weight:bold;text-align: center;line-height: 36px;">今日已完成分拣量</div>
                </div>
            </div>
            <div class="fl" style="margin-right: 20px;">
                <div style="width: 200px;height: 120px;border:2px solid green;">
                    <div style="width: 196px;height: 80px;font-size: 34px;font-weight:bold;text-align: center;line-height: 80px;color: red;">{$dailycomplete|number_format=###,2}%</div>
                    <div style="width: 196px;height: 36px;font-size: 14px;font-weight:bold;text-align: center;line-height: 36px;">今日总完成率</div>
                </div>
            </div>
        </div>
    </div>

    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table>
            <thead>
            <tr>
                <th>ID</th>
                <th>周期计划名称</th>
                <th>状态</th>
                <th>计划开始时间</th>
                <th>计划结束时间</th>
                <th>计划分拣量</th>
                <th>实际完成分拣量</th>
                <th>计划完成比例</th>
                <th>计划备注</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.id} </td>
                        <td>{$vo.planname}</td>
                        <td>{$vo.process|get_sort_planprocess}</td>
                        <td>{$vo.planstart|time_format}</td>
                        <td>{$vo.planend|time_format}</td>
                        <td>{$vo.plancnt}</td>
                        <td>{$vo.realitycnt}</td>
                        <td>{$vo.id|get_sort_plancomplete|number_format=###,2}%</td>
                        <td>{$vo.remark}</td>
                        <td><a href="{:U('Sort/dailydetail',array('id'=>$vo['id']))}" class="btn btn-success">计划详情</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Sort/dailysurvey')}');
    </script>
</block>
